package cn.kuporo.seckill.activity.application.dubbo;

import cn.kuporo.seckill.activity.application.service.SeckillActivityService;
import cn.kuporo.seckill.common.model.dto.SeckillActivityDTO;
import cn.kuporo.seckill.dubbo.interfaces.activity.SeckillActivityDubboService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

/**
 * @author: kuporo
 * @since: 2025/7/7
 * @description:
 */
@Component
@DubboService
@RequiredArgsConstructor
public class SeckillActivityDubboServiceImpl implements SeckillActivityDubboService {
    private final SeckillActivityService seckillActivityService;

    @Override
    public SeckillActivityDTO getSeckillActivity(Long id, Long veersion) {
        return  seckillActivityService.getSeckillActivityById(id, veersion);
    }
}
